package br.com.fidalgotecnologia.layar.itg;

import br.com.fidalgotecnologia.layar.data.HotSpotDAO;
import br.com.fidalgotecnologia.layar.entity.HotSpot;

public class ItgHotSpot {
	private static ItgHotSpot instance;

	public static ItgHotSpot getInstance() {
		if(instance == null){
			instance = new ItgHotSpot();
		}
		return instance;
	}
	
	public boolean salvarHotSpot(HotSpot hotSpot){
		return HotSpotDAO.getInstance().inserir(hotSpot);
	}

	public byte[] getImagem(HotSpot hotSpot) {
		HotSpot retorno = HotSpotDAO.getInstance().buscarHotSpot(hotSpot);
		return retorno.getImagem();
	}
}
